package com.sl.au.service;

import java.util.List;
import java.util.Map;

import org.activiti.engine.runtime.ProcessInstance;

import com.sl.au.entity.Bid;
import com.sl.au.entity.BidRecord;
import com.sl.au.repository.BidRepository;

public interface BidService extends BaseService {
	BidRepository getRepository();

	

	/**
	 * 保存投标流程发起的信息
	 * 
	 * @param pInst
	 */
	public void saveProcessStart(String bidId, ProcessInstance pInst);
	
	 /*
     * 获得投标信息
     */
	List<Bid> getBid(int start, int length, Map<String,String> condition);
	
	long getBidCount(Map<String,String> condition);
	
	 /*
     * 获得投标记录信息
     */
	List<BidRecord> getBidRecord(int start, int length, String bidId);
}
